<!--http://www.12301.cc/register_card.html?did=113-->
<?php

    $cid = $var["cid"];
    $dname = $var['dname'];
    $card_no = $var['card_no'];
    $physics_no = $var['physics_no'];
    $danmereadonly = "readonly";
    $card_noreadonly = ($cid!=0 && isset($card_no) && $card_no) ? "readonly" : "";
    $physics_noreadonly = ($cid!=0 && isset($physics_no) && $physics_no) ? "readonly" : "";
    if(isset($var["notice_type"]) && $var["notice_type"]){
        $notice_type = $var["notice_type"];
    }else{
        $notice_type = "1";
    }
    if($cid!==0){
        $passwordRequire = "";
    }else{
        $passwordRequire = "require";
    }

?>
<link rel="stylesheet" href="http://www.12301.cc/css/common/www.12301.cc.global.css"/>
<link rel="stylesheet" href="http://www.12301.cc/tpl/membercard/css/membercard.common.css"/>
<link rel="stylesheet" href="http://www.12301.cc/tpl/membercard/css/mem_msg.css"/>
<!--[if lt IE 7]><div id="memCertifyContainer" class="lt-ie10 lt-ie9 lt-ie8 lt-ie7 ie6 memCertifyContainer commonRigContainer"> <![endif]-->
<!--[if IE 7]><div id="memCertifyContainer" class="lt-ie10 lt-ie9 lt-ie8 ie7 memCertifyContainer commonRigContainer"> <![endif]-->
<!--[if IE 8]><div id="memCertifyContainer" class="lt-ie10 lt-ie9 ie8 memCertifyContainer commonRigContainer"> <![endif]-->
<!--[if IE 9]><div id="memCertifyContainer" class="lt-ie10 ie9 memCertifyContainer commonRigContainer"><![endif]-->
<!--[if gt IE 9]><!--><div id="memCertifyContainer" class="memCertifyContainer commonRigContainer"> <!--<![endif]-->
	<!--<div id="tabHead" class="tabHead"><span class="tabNav">会员信息</span><span class="tabNav">资质认证</span><span class="tabNav active">会员卡信息</span></div>-->
	<div id="formContainer" class="formContainer">
		<form id="memMsgForm" action="call/jh_card.php" method="post">
			<input id="formMode" name="cid" type="hidden" value="<?=$var['cid']?>"/>
			<input id="" name="config_id" type="hidden" value="<?=$var['config_id']?>"/>
			<input id="" name="action" type="hidden" value="accept"/>
			<input id="" name="did" type="hidden" value="<?=$_GET['did']?>"/>
			<input id="varNoticeTypeHidInp" name="" type="hidden" value="<?=$var['notice_type']?>"/>
			<div id="requireFormBox" class="formBox requireFormBox">
				<div class="line">
					<span class="lt">发卡单位</span>
					<input type="text" name="mobile" <?=$danmereadonly?> require class="formInp valifyInp mobileInp" value="<?=$var['dname']?>" id=""/>
                    <span class="errortip"><i class="star">*</i><i class="t">必填</i></span>
                </div>
				<div class="line">
					<span class="lt">卡号</span>
					<input type="text" <?=$physics_no?> require class="formInp card_no_inp valifyInp" name="card_no" value="<?=$var['card_no']?>" id="card_no_inp" placeholder="必填"/>
                    <span class="errortip"><i class="star">*</i><i class="t">必填</i></span>
				</div>
				<div class="line">
					<span class="lt">物理卡号</span>
					<input type="text"  value="<?=$var['physics_no']?>" <?=$physics_noreadonly?> require class="formInp phy_no_inp valifyInp" name="phy_no" id="phy_no_inp"/>
                    <object  classid="clsid:b1ee5c7f-5cd3-4cb8-b390-f9355defe39a" width="0" height="0" id="helloBossma"></object>
                    <a id="readwuKa" class="readwuKa" href="javascript:void(0)">读取物理卡号</a>
                    <span class="errortip"><i class="star">*</i><i class="t">必填</i></span>
				</div>
				<div style="display:none" class="line">
					<span class="lt">消费密码</span>
					<input type="password" class="formInp password_inp" name="password" id="password_inp" value="123456"/>
                    <span style="display:inline; color:#7e828a; margin-left:0px;" class="errortip"><i class="t">6位数</i></span>
				</div>
				<div style="display:none" class="line">
					<span class="lt">确认密码</span>
					<input type="password" class="formInp repassword_inp" name="chPassword" id="chPassword_inp" value="123456"/>
                    <span class="errortip"><i class="star">*</i><i class="t">两次密码不一致</i></span>
				</div>
				<div class="line sendType">
					<span class="lt">消息通知</span>
					<span>
						<label class="group" for="msg_type_weixin"><input type="radio" class="noticeTypeRadio" name="notice_type" value="1" id="msg_type_weixin"/><span class="t">微信</span></label>
						<label class="group" for="msg_type_duanxin"><input type="radio" class="noticeTypeRadio" name="notice_type" value="2" id="msg_type_duanxin"/><span class="t">短信</span></label>
						<label class="group" for="msg_type_no"><input type="radio" class="noticeTypeRadio" name="notice_type" value="0" id="msg_type_no"/><span class="t">不通知</span></label>
					</span>
				</div>
			</div>
			<div style="display:none" class="formBox t limitFormBox">
				<div class="line sendType">
					<input type="hidden" name="daily_limit" class="hidInp" value="<?=$var['daily_buy_limit']?>" id="daily_limit"/>
					<span class="lt">每日限购次数</span>
					<label class="st group nolimit"><input type="radio" name="stt_1" id=""/><i class="t">不限</i></label>
					<label class="st group"><input type="radio" name="stt_1" id=""/><i class="t">限制</i><input value="<?=$var['daily_buy_limit']==-1 ? '' : $var['daily_buy_limit']?>" class="formInp" style="width:160px; margin:0 4px; text-align:left" type="text" name="" id=""/><span class="t">次</span></label>
					<!--<input type="text" name="daily_limit" class="formInp valifyInp daily_limit" value="" id="daily_limit"/>-->
					<!--<span id="" class="errortip wukahao"><i class="iconfont">&#xe654;</i><i class="t">必填</i></span>-->
				</div>
				<div class="line sendType">
					<span class="lt">每次限购单票类数量</span>
					<input type="hidden" name="num_limit" class="hidInp" value="<?=$var['buy_num_limit']?>" id="num_limit" placeholder=""/>
					<label class="st group nolimit"><input type="radio" name="stt_2" id=""/><i class="t">不限</i></label>
					<label class="st group"><input type="radio" name="stt_2" id=""/><i class="t">限制</i><input value="<?=$var['buy_num_limit']==-1 ? '' : $var['buy_num_limit']?>" class="formInp" style="width:160px; margin:0 4px; text-align:left" type="text" name="" id=""/><span class="t">张</span></label>
					<!--<input type="text" class="formInp checkmaInp valifyInp num_limit" name="num_limit" id="num_limit" placeholder=""/>-->
					<!--<span id="" class="errortip wukahao"><i class="iconfont">&#xe654;</i><i class="t">必填</i></span>-->
					<!--<span class="t">张</span>-->
				</div>
				<div class="line sendType">
					<input type="hidden" class="hidInp" name="interval" value="<?=$var['buy_interval']?>" id="interval" placeholder=""/>
					<span class="lt">购买间隔时间</span>
					<label class="st group nolimit"><input type="radio" name="stt_3" id=""/><i class="t">不限</i></label>
					<label class="st group"><input type="radio" name="stt_3" id=""/><i class="t">限制</i><input value="<?=$var['buy_interval']==-1 ? '' : $var['buy_interval']?>" class="formInp" style="width:160px; margin:0 4px; text-align:left" type="text" name="" id=""/><span class="t">分钟</span></label>
					<!--<input type="text" class="formInp checkmaInp valifyInp interval" name="interval" id="interval" placeholder=""/>-->
					<!--<span id="" class="errortip wukahao"><i class="iconfont">&#xe654;</i><i class="t">必填</i></span>-->
					<!--<span class="t">分钟</span>-->
				</div>
			</div>
			<div class="formBox">
				<div class="line">
					<span class="lt" style="visibility:hidden"></span>

					<button id="saveBtn" class="saveBtn gButton"><i class="iconfont loading">&#xe644;</i><span class="t default">保存</span><span class="t loading">正在保存..</span></button>
				</div>
			</div>
		</form>
		<div id="formLoading" style="display:none" class="formLoading"><div class="con"><img src="http://www.12301.cc/images/icons/gloading.gif" alt=""/><span class="t">正在保存...</span></div></div>
	</div>
</div>
<script type="text/javascript" src="http://www.12301.cc/js/global/www.12301.cc.global.js"></script>
<script type="text/javascript" src="http://wx.12301.cc/public/js/common/class.js"></script>
<script type="text/javascript" src="http://www.12301.cc/tpl/membercard/js/membercard.memmsg.js"></script>
